import bitKey from './bitKey'

const install = function(Vue) {
  Vue.directive('bit-key', bitKey)
}

if (window.Vue) {
  window['bit-key'] = bitKey
  Vue.use(install); // eslint-disable-line
}

bitKey.install = install
export default bitKey
